www.gusucode.com > Connect RTL verification to MATLAB 程序工具箱matlab源码 > Connect RTL verification to MATLAB/pulse_detector_verification/cosim/compile_hdl_design_Pulse_Detector.m

    function compile_hdl_design_Pulse_Detector
% compile_hdl_design_Pulse_Detector compiles HDL design
% Generated by Cosimulation Wizard
[s, r] = system(['vsim < hdlverifier_compile_design.do'],'-echo');
if (s ~= 0)
    error(message('HDLLink:CosimWizard:CompilationError',r));
end